/*
 * frxs Inc.  湖南兴盛优选电子商务有限公司.
 * Copyright (c) 2017-2019. All Rights Reserved.
 */

package com.zwl.controller;


import com.zwl.model.vo.RobotStoreGrayVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/vgroup/gen2")
public class VgroupGen2Controller {

    /**
     * 查询灰度信息
     *
     * @param storeCode 111233
     * @return
     */
    @GetMapping("/gen")
//    @ApiOperation(value = "加载灰度信息11111",notes = "加载灰度信息,详细描述222")
    public RobotStoreGrayVo gen(String storeCode) {
        System.out.println("storeCode = " + storeCode);
        RobotStoreGrayVo robotStoreGrayVo = RobotStoreGrayVo.builder().grayFlag(true).storeName("zwl").storeCode("yyy").build();
        return robotStoreGrayVo;
    }

    /**
     * 为什么会有乱码呢  查询  灰度 信息 haha 第二个嘛
     *
     * @param storeCode 门店编码1234567
     * @param storeId   门店id1234567
     * @return
     */
    @GetMapping("/gen2")
//    @ApiImplicitParams(value = {
//            @ApiImplicitParam(name = "storeCode", value = "门店编码22"),
//            @ApiImplicitParam(name = "storeId", value = "门店id222")}
//    )
    public RobotStoreGrayVo gen2(String storeCode, int storeId) {

        System.out.println("storeCode = " + storeCode);
        RobotStoreGrayVo robotStoreGrayVo = RobotStoreGrayVo.builder().grayFlag(true).storeName("zwl").storeCode("yyy").build();
        return robotStoreGrayVo;
    }

    @GetMapping("/gen3")
    public RobotStoreGrayVo gen3(String storeCode, int storeId, String userName) {
        System.out.println("storeCode = " + storeCode);
        System.out.println("storeId = " + storeId);
        RobotStoreGrayVo robotStoreGrayVo = RobotStoreGrayVo.builder().grayFlag(true).storeName("zwl").storeCode("yyy").build();
        return robotStoreGrayVo;
    }
}
